<?php
/**
 * 整屋打分
 */
use Doraemon\tools\Log;
use Doraemon\service\DesignerInfoLib\OperateInfoService as sOperateInfo;

class AdminScoreAction extends ActionPlugin {

    public function main() {
        Log::info('整屋打分接收到事件信息', $this->messageBody);
        $message = $this->messageBody;
        $uid = $this->messageBody['data']['uid'];
        // 整屋打分
        sOperateInfo::updateArticleHighRate($uid);
        Log::info('整屋打分接收到的事件', compact('uid', 'message'));
        $this->setSuccess();
    }
}